| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

StringView.h
1 // StringView.h
3 //
5
6 namespace nkLog
7 {
17 class StringView final
18 {
19 public :
20
21 // Functions
22 // Constructor, destructor
26 StringView () = delete ;
33 StringView (const char* data) noexcept ;
41 StringView (const char* data, unsigned long long size) noexcept ;
47 StringView (const String& str) noexcept ;
48
49 // Getters
53 const char* getData () const ;
57 unsigned long long getSize () const ;
58
59 // Operators
65 char operator[] (unsigned long long index) const ;
66
67 public :
68
69 // Inlined constructors
76 StringView (const std::string& str) noexcept ;
83 StringView (std::string_view str) noexcept ;
84
85 public :
86
87 // Inlined conversions
92 operator std::string () const ;
97 operator std::string_view () const ;
98 } ;
99 }
nkLog::StringView
Allows to exchange strings with external code.
Definition: StringView.h:18
nkLog::StringView::StringView
StringView(const char *data, unsigned long long size) noexcept
nkLog::StringView::StringView
StringView(std::string_view str) noexcept
nkLog::StringView::getData
const char * getData() const
nkLog
Encompasses all API of component NilkinsLog.
Definition: String.h:7
nkLog::String
Allows to exchange strings with external code.
Definition: String.h:18
nkLog::StringView::StringView
StringView()=delete
nkLog::StringView::StringView
StringView(const String &str) noexcept
nkLog::StringView::operator[]
char operator[](unsigned long long index) const
nkLog::StringView::StringView
StringView(const std::string &str) noexcept
nkLog::StringView::StringView
StringView(const char *data) noexcept
nkLog::StringView::getSize
unsigned long long getSize() const